package com.zjw.zy.heart.wbsocket;

import jakarta.websocket.CloseReason;
import jakarta.websocket.Session;

public interface IWSConnectHandler {

    default void onHandleOpen(Session session, String username){

    }


    default void onHandleClose(Session session, CloseReason closeReason){}


    default boolean onInterceptOpen(Session session){
        return false;
    }

    default boolean onInterceptClose(Session session){
        return false;
    }
}
